<?php
  require_once 'web.utils.php';
?>
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width,initial-scale=1">
  <meta name="format-detection" content="telephone=no">
  <?php
    $pageTitle = NULL;
    $pageKeywords = NULL;
    $description = NULL;
  ?>
  {if !empty($rs[seobiaoti])}
    {php $pageTitle=$rs[seobiaoti];}
  {elseif !empty($setting[meta_title])}
    {php $pageTitle=$setting[meta_title];}
  {else}
    {php $pageTitle=$title;}
  {/if}
  {if !empty($rs[seokeywords])}
    {php $pageKeywords=$rs[seokeywords]; }
  {elseif !empty($setting[meta_keywords])}
    {php $pageKeywords=$setting[meta_keywords]; }
  {/if}
  {if empty($setting[meta_description])}
    {php $description = mb_substr(strip_tags($rs['content']),0,80,'utf8'); }
  {else} 
    {php $description = $setting[meta_description]; }
  {/if}
  <title>{$pageTitle}</title>
  <meta name="keywords" content="{$pageKeywords}" />
  <meta name="description" content="{$description}" />
  <link rel="stylesheet" href="/statics/{{name}}/css/index.css" />
  <link rel="stylesheet" href="/statics/{{name}}/css/header.css" />
  <link rel="stylesheet" href="/statics/{{name}}/css/footer.css" />
  <link rel="stylesheet" href="/statics/{{name}}/css/help.css" />
  <link rel="icon" type="image/x-icon" href="/statics/{{name}}/logo.ico" />
</head>
<?php
    $helpCat = findCatByCatdir('faq');
    $helpCatid = $catid;
    $helpTabList = array();
    $showinfo = array();
  ?>
  {if $rs && $rs[id]}
    {php $showinfo = $rs; }
  {else}
    {pc:content action="lists" catid="$catid" order="listorder desc,updatetime desc" moreinfo="1" num="1" return="data3"}
      {loop $data3 $v3}
        {php $showinfo = $v3; }
      {/loop}
    {/pc}
  {/if}
<body>
  <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
    style="position: absolute; width: 0; height: 0" aria-hidden="true" id="__SVG_SPRITE_NODE__">
    <symbol xmlns="http://www.w3.org/2000/svg" class="icon" viewBox="0 0 1024 1024" id="icon-close">
      <path
        d="M806.4 263.2l-45.6-45.6L512 467.2 263.2 217.6l-45.6 45.6L467.2 512 217.6 760.8l45.6 45.6L512 557.6l248.8 248.8 45.6-45.6L557.6 512z"
        p-id="3493"></path>
    </symbol>
    <symbol xmlns="http://www.w3.org/2000/svg" class="icon" viewBox="0 0 1024 1024" id="icon-down">
      <path
        d="M511.97 670.42L936.3 246.93c20.04-20 52.58-20 72.61 0 20.04 19.99 20.04 52.47 0 72.47L550.64 776.77c-10.59 10.57-24.76 15.67-38.67 14.9-13.91 0.64-28.07-4.33-38.67-14.9L15.03 319.52c-20.03-20-20.03-52.48 0-72.47 20.04-20 52.58-20 72.61 0l424.33 423.37z m0 0"
        p-id="1286"></path>
    </symbol>
    <symbol xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" class="icon"
      viewBox="0 0 1024 1024" id="icon-search">
      <defs>
        <style type="text/css"></style>
      </defs>
      <path
        d="M862.609 816.955L726.44 680.785l-0.059-0.056a358.907 358.907 0 0 0 56.43-91.927c18.824-44.507 28.369-91.767 28.369-140.467 0-48.701-9.545-95.96-28.369-140.467-18.176-42.973-44.19-81.56-77.319-114.689-33.13-33.129-71.717-59.144-114.69-77.32-44.507-18.825-91.767-28.37-140.467-28.37-48.701 0-95.96 9.545-140.467 28.37-42.973 18.176-81.56 44.19-114.689 77.32-33.13 33.129-59.144 71.717-77.32 114.689-18.825 44.507-28.37 91.767-28.37 140.467 0 48.7 9.545 95.96 28.37 140.467 18.176 42.974 44.19 81.561 77.32 114.69 33.129 33.129 71.717 59.144 114.689 77.319 44.507 18.824 91.767 28.369 140.467 28.369 48.7 0 95.96-9.545 140.467-28.369 32.78-13.864 62.997-32.303 90.197-54.968 0.063 0.064 0.122 0.132 0.186 0.195l136.169 136.17c6.25 6.25 14.438 9.373 22.628 9.373 8.188 0 16.38-3.125 22.627-9.372 12.496-12.496 12.496-32.758 0-45.254z m-412.274-69.466c-79.907 0-155.031-31.118-211.534-87.62-56.503-56.503-87.62-131.627-87.62-211.534s31.117-155.031 87.62-211.534c56.502-56.503 131.626-87.62 211.534-87.62s155.031 31.117 211.534 87.62c56.502 56.502 87.62 131.626 87.62 211.534s-31.118 155.031-87.62 211.534c-56.503 56.502-131.627 87.62-211.534 87.62z"
        fill="" p-id="2293"></path>
    </symbol>
  </svg>
      {template "content","header"}
      <div class="top-bg"><img src="/statics/{{name}}/img/hiopbg.png" alt></div>
      <div class="layout-body faq">
          <div class="cen_cont">
            <div class="left_text" id="faq-nav">
              <!-- <div class="search">
                <input placeholder="请输入" class="search-input">
                <svg aria-hidden="true" class="search-icon svg-icon">
                  <use xlink:href="#icon-search"></use>
                </svg>
              </div> -->
              <div class="title">{$CATEGORYS[$catid][catname]}</div>
              {pc:content  action="lists" catid="$catid"  order="listorder desc,updatetime desc" moreinfo="1"  num="100" return="data"}
                  {if $data}
                    <div class="list-child" id="cat-list">
                      <?php $data = array_values($data); ?>
                      {loop $data $k $v}
                          <a href="{$v[url]}" class="list {if $v[id] == $showinfo[id]}active{/if}" data-title="{$v[title]}"><?php echo $k+1; ?>.{$v[title]}</a>
                      {/loop}
                    </div>
                  {/if}
                    <div class="nodata" hidden>
                      暂无该内容
                    </div>  
              {/pc}
            </div>
            <div class="right_text">
              <div class="detail-title">{$showinfo[title]}</div>
              <div class="text xz-scroll">
                {transUploadfileDomain($showinfo[content])}
              </div>
            </div>
          </div>
    </div>
    {template "content","footer"}
  <script src="/statics/{{name}}/js/jquery.min.js"></script>
  <script src="/statics/{{name}}/js/index.js"></script>
  <script src="/statics/{{name}}/js/help.js"></script>
</body>

</html>